import request from '@/utils/request'

// 查询列表
export function listRescueforce(query) {
  return request({
    url: '/rescueForce/page',
    method: 'get',
    params: query
  })
}

// 查询区县致死性差异性详细
export function getModelRescueforce(id) {
  return request({
    url: '/rescueForce/getModelById?id=' + id,
    method: 'get'
  })
}

export function getModelRescueforceForCopy(id) {
  return request({
    url: '/rescueForce/getModelByIdForCopy?id=' + id,
    method: 'get'
  })
}


// 新增区县致死性差异性
export function addRescueforce(data) {
  return request({
    url: '/rescueForce/save',
    method: 'post',
    data: data
  })
}

// 修改区县致死性差异性
export function updateRescueforce(data) {
  return request({
    url: '/rescueForce/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delRescueforce(id) {
  return request({
    url: '/rescueForce/delete/'+id,
    method: 'post',
    
  })
}

